//
//  YGOwnHelpBLL.h
//  yuanshangyiliao
//
//  Created by icholab on 2021/4/29.
//

#import "JSONModel.h"
#import "YGSickTypeModel.h"
#import "YGFoodGuideTypeModel.h"
#import "YGSickListModel.h"
NS_ASSUME_NONNULL_BEGIN
@class OwnHelpRequestModel;
@interface YGOwnHelpBLL : JSONModel

+(void)requestServerDetailWithModel:(OwnHelpRequestModel *)model
                           Success:(void (^)(NSString *pid))success
                              fail:(void (^)(NSError *error))fail;

+(void)requestLaodongSuccess:(void (^)(NSArray <YGSickTypeModel *>* model))success
                          fail:(void (^)(NSError *error))fail;

+(void)requestDiseaseSuccess:(void (^)(NSArray <YGFoodGuideTypeModel *>* model))success
                        fail:(void (^)(NSError *error))fail;

+(void)requestDiseaseID:(NSString *)pid Success:(void (^)(NSArray <YGSickListModel *>* model))success
                   fail:(void (^)(NSError *error))fail;
@end

@interface OwnHelpRequestModel : JSONModel
@property (nonatomic, strong) NSString  *diseaseId;
@property (nonatomic, strong) NSString  *name;
@property (nonatomic, assign) NSInteger  age;
@property (nonatomic, assign) NSInteger  sex;
@property (nonatomic, assign) NSInteger  stature;
@property (nonatomic, assign) NSInteger  weight;
@property (nonatomic, assign) NSInteger  labourIntension;
@property (nonatomic, assign) NSInteger  isPregnancy;

/*
diseaseId    string    是    病种编号
name    string    是    姓名
age    string    是    年龄
sex    string    是    性别(1：男；2：女)
stature    string    是    身高
weight    string    是    体重
labourIntension    int    是    劳动强度:(1:卧床; 2:轻度体力劳动; 3:中度体力劳动; 4:重度体力劳动)
isPregnancy    int    否    孕期:(1:未孕; 2:孕前; 3:孕中; 4:孕后;) 女性必选
 */

@end
NS_ASSUME_NONNULL_END
